/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cmath>
using namespace std;

int main_22()
{
    double d;
    scanf("%lf",&d);
    printf("%.2f %.2f\n",sqrt(d),log(d));
	return 0;
}
